package com.coolgor.axnut.entity.auth;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 登录信息实体类
 * 用于记录用户登录的信息
 * 
 * @author CoolGor
 *
 */
public class LoginInfo {
	private Long recordID;		
	private Long userID;
	private String username;
	private String nameCN;
	private Long loginRoleId;
	private String loginRoleName;
	private String loginIP;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date loginTime;
	private String loginWay;
	private Integer status;
	private String statusInfo;
	private String remark;
	public Long getRecordID() {
		return recordID;
	}
	public void setRecordID(Long recordID) {
		this.recordID = recordID;
	}
	public Long getUserID() {
		return userID;
	}
	public void setUserID(Long userID) {
		this.userID = userID;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getNameCN() {
		return nameCN;
	}
	public void setNameCN(String nameCN) {
		this.nameCN = nameCN;
	}
	public Long getLoginRoleId() {
		return loginRoleId;
	}
	public void setLoginRoleId(Long loginRoleId) {
		this.loginRoleId = loginRoleId;
	}
	public String getLoginRoleName() {
		return loginRoleName;
	}
	public void setLoginRoleName(String loginRoleName) {
		this.loginRoleName = loginRoleName;
	}
	public String getLoginIP() {
		return loginIP;
	}
	public void setLoginIP(String loginIP) {
		this.loginIP = loginIP;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	public String getLoginWay() {
		return loginWay;
	}
	public void setLoginWay(String loginWay) {
		this.loginWay = loginWay;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getStatusInfo() {
		return statusInfo;
	}
	public void setStatusInfo(String statusInfo) {
		this.statusInfo = statusInfo;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Override
	public String toString() {
		return "LoginInfo [recordID=" + recordID + ", userID=" + userID + ", username=" + username + ", nameCN="
				+ nameCN + ", loginRoleId=" + loginRoleId + ", loginRoleName=" + loginRoleName + ", loginIP=" + loginIP
				+ ", loginTime=" + loginTime + ", loginWay=" + loginWay + ", status=" + status + ", statusInfo="
				+ statusInfo + ", remark=" + remark + "]";
	}
}
